// 引入请求
import request from './request.js'

const PPUrlHeadr = 'https://api.pencil-stub.com'
let api = {}
//接口示例
api.getCode = data => request.post(PPUrlHeadr + '/user/login/get-code', data)
api.login = data => request.post(PPUrlHeadr + '/user/login', data)
api.couponList = data => request.post(PPUrlHeadr + '/user/query/user/coupon',data)
api.userCoupon = data => request.post(PPUrlHeadr + '/user/coupon/use_code',data)
api.vipList = data => request.post(PPUrlHeadr + '/user/vip/way',data)
api.vipOrder = data => request.post(PPUrlHeadr + '/user/trade/record/list',data)
api.modelList = data => request.post(PPUrlHeadr + '/data/ai_paint/models/v2',data)
api.paint = data => request.post(PPUrlHeadr + '/ai/ai_paint/img_generate',data)
api.userInfo = data => request.post(PPUrlHeadr + '/user/info',data)
api.detection = data => request.post(PPUrlHeadr + '/play_script/detection',data)




api.get = data => request.get(data)



export default api;